/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.yaps.petstore.service;

import com.yaps.petstore.dto.CartItem;
import com.yaps.petstore.entity.customer.Address;
import com.yaps.petstore.entity.customer.Customer;
import com.yaps.petstore.entity.order.CreditCard;
import com.yaps.petstore.entity.order.Order;
import java.util.List;

/**
 *
 * @author belhassine
 */
public interface IOrderService {
    Order createOrder(Customer customer, Address deliveryAddress, CreditCard creditCard, List<CartItem> cartItems);
     
    Order findOrder(Long orderId) ;

    void deleteOrder(Order order) ;

    List<Order> findOrders();
}
